package com.java1412.config;

import com.java1412.controller.HelloResource;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.context.annotation.Configuration;

import javax.ws.rs.ApplicationPath;

/**
 * @author java1412
 * @create 2021-05-20 9:30
 * @ApplicationPath("shop")资源根路径。
 */
@Configuration
@ApplicationPath("shop")
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {
        register(HelloResource.class);
    }
}
